Si presiono el botón, ocurre el siguiente error: TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role. Sin embargo, también puedo poner una identificación sólida allí y este error todavía ocurre.
button.guild.channels.create('cs', { type: "text", parent_id: '802172599836213258', permissionOverwrites: [ { id: button.guild.roles.everyone, deny: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] }, { id: button.clicker.id, allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] } ] })El único problema posible que puedo ver es button.guild.roles.everyone , no hay propiedad de todos en button.guild.roles , la identificación de todos es la identificación del gremio, por lo que si reemplaza button.guild.roles.everyone con button.guild.id , debería solucionar el problema.
button.guild.channels.create('cs', { type: "text", parent_id: '802172599836213258', permissionOverwrites: [ { id: button.guild.id, deny: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] }, { id: button.clicker.id, allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] } ] })